package com.project.controller;

import com.project.service.impl.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("userInfo")
public class UserInfo {
    @Autowired
    private  UserService userService;
    @RequestMapping("updatePwdById")
    public String updatePwdById(Integer userId, String pwd1, String pwd2, String pwd3){
        userService.updatePwdById(userId,pwd1,pwd2,pwd3);
        return "ok";
    }
}
